package com.dw.dwdzcommerce.view.splash;

import com.dw.dwdzcommerce.R;
import com.dw.dwdzcommerce.base.activity.BaseActivity;
import com.dw.dwdzcommerce.view.splash.splashPersenter.splashPersenterInterface;

import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.TextView;

public class SplashActivity extends BaseActivity implements splashPersenterInterface{

	private splashPersenter mPersenter;
	
	@Override
	protected void inCreate(Bundle savedInstanceState) {
		mPersenter=new splashPersenter();
		mPersenter.bind(this);
		TextView tv=findView(R.id.activity_splash_yi_tv);
		tv.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				mPersenter.turnToMain();	
			}
		});
		
		
	}

	@Override
	protected int getLayoutId() {
		// TODO Auto-generated method stub
		return R.layout.activity_splash;
	}

	@Override
	public void netWorkException(String msg) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void remoteFailMsg(String msg) {
	
		
	}

	@Override
	public void onComplete() {
		
		
	}
	
	@Override
	public void onBackPressed() {
		mPersenter.onBackUp();
	}
	

}
